<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Space Battle: C:/Documents and Settings/Administrateur/Mes documents/space-battle-insa/SWIG/Jeu.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Space Battle
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">C:/Documents and Settings/Administrateur/Mes documents/space-battle-insa/SWIG/Jeu.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00009"></a>00009 <span class="preprocessor">#pragma once</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;MonteurPartie.h&quot;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;MonteurPartie2Joueurs.h&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;Joueur.h&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &quot;Plateau.h&quot;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &quot;Position.h&quot;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;CaseStationOrbitale.h&quot;</span>
<a name="l00018"></a>00018 
<a name="l00023"></a>00023 <span class="keyword">class </span><a class="code" href="class_jeu.html">Jeu</a> {
<a name="l00024"></a>00024 <span class="keyword">protected</span> :
<a name="l00025"></a>00025         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_jeu.html#aafcb46d6fe32db0910ed5fd0f5f96643">_idxJoueurCourant</a>; 
<a name="l00026"></a>00026         <a class="code" href="class_monteur_partie.html">MonteurPartie</a>* <a class="code" href="class_jeu.html#a121da4698325bf84dfa0960a368091fd">monteurPartie</a>;   
<a name="l00028"></a>00028 <span class="keyword">public</span> :
<a name="l00033"></a>00033         <a class="code" href="class_jeu.html#a74e92e9ce8b692fef15da2a7c788cbb9" title="Constructeur.">Jeu</a>(<a class="code" href="class_monteur_partie.html">MonteurPartie</a>*);
<a name="l00034"></a>00034 
<a name="l00040"></a>00040         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_jeu.html#aa6bb68d8b63feb87f0d6d62739abf3a4" title="Retourne l&#39;indice du joueur courant dans le tableau des joueurs.">getIndiceJoueurCourant</a>() { <span class="keywordflow">return</span> <a class="code" href="class_jeu.html#aafcb46d6fe32db0910ed5fd0f5f96643">_idxJoueurCourant</a>; };
<a name="l00041"></a>00041 
<a name="l00047"></a>00047         <span class="keywordtype">void</span> <a class="code" href="class_jeu.html#acfc1396d935206b1f4aff84c9386eb7e" title="Setter pour l&#39;attribut _idxJoueurCourant.">setIndiceJoueurCourant</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i) { <a class="code" href="class_jeu.html#aafcb46d6fe32db0910ed5fd0f5f96643">_idxJoueurCourant</a> = i; }
<a name="l00048"></a>00048 
<a name="l00054"></a>00054         <a class="code" href="class_monteur_partie.html">MonteurPartie</a>* getMonteurPartie() <span class="keyword">const</span>;
<a name="l00055"></a>00055 
<a name="l00061"></a>00061         <span class="keywordtype">void</span> <a class="code" href="class_jeu.html#ac385e2f269d30f8b49ea8dca00c6ffcb" title="Modification du monteurPartie.">setMonteurPartie</a>(<a class="code" href="class_monteur_partie.html">MonteurPartie</a>*);
<a name="l00062"></a>00062 
<a name="l00067"></a>00067         <a class="code" href="class_partie.html">Partie</a>* getPartie() <span class="keyword">const</span>;
<a name="l00068"></a>00068 
<a name="l00073"></a>00073         <span class="keywordtype">void</span> <a class="code" href="class_jeu.html#afd8cbaceaa45a0f93de9e3f83e361eb6" title="Creation d&#39;une partie en fonction du nombre de joueurs.">creerPartie</a>();
<a name="l00074"></a>00074         
<a name="l00080"></a>00080         <a class="code" href="class_joueur.html">Joueur</a>* <a class="code" href="class_jeu.html#a35c7769fdd18b626b5a6f1d0fe1401d2" title="Recupere le joueur courant.">getJoueurCourant</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;getPartie()-&gt;getJoueur(<a class="code" href="class_jeu.html#aafcb46d6fe32db0910ed5fd0f5f96643">_idxJoueurCourant</a>); }
<a name="l00081"></a>00081 
<a name="l00087"></a>00087         <a class="code" href="class_vaisseau.html">Vaisseau</a>* <a class="code" href="class_jeu.html#a8ba9e796792d503da784240673819fcb" title="Recupere le vaisseau courant du joueur courant.">getVaisseauCourant</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;<a class="code" href="class_jeu.html#a35c7769fdd18b626b5a6f1d0fe1401d2" title="Recupere le joueur courant.">getJoueurCourant</a>()-&gt;getFlotteCourante()-&gt;<a class="code" href="class_flotte.html#a2b7e6ef925d8c0d0b210640d38d01dc3" title="Donne le vaisseau en cours d&#39;utilisation.">getVaisseau</a>(); }
<a name="l00088"></a>00088 
<a name="l00094"></a>00094         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_jeu.html#aacb28874c9165557085bf5fccb7367c5" title="Retourne la position du joueur dans l&#39;ordre de passage.">getRangJoueurCourant</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_jeu.html#aafcb46d6fe32db0910ed5fd0f5f96643">_idxJoueurCourant</a>+1; }
<a name="l00095"></a>00095 
<a name="l00101"></a>00101         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_jeu.html#a8d9ae7e20ac5e08b16c49ae25c32ccef" title="Retourne le nombre d&#39;artefacts du joueur courant.">getNbArtefactsJoueurCourant</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;<a class="code" href="class_jeu.html#a35c7769fdd18b626b5a6f1d0fe1401d2" title="Recupere le joueur courant.">getJoueurCourant</a>()-&gt;getNbArtefacts(); }
<a name="l00102"></a>00102 
<a name="l00108"></a>00108         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_jeu.html#a0740470db598cc28ae1ecd4e6b253376" title="Retourne le nombre de vaisseaux de la flotte courante du joueur courant.">getNbVaisseauxJoueurCourant</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;<a class="code" href="class_jeu.html#a35c7769fdd18b626b5a6f1d0fe1401d2" title="Recupere le joueur courant.">getJoueurCourant</a>()-&gt;getNbVaisseaux(); }
<a name="l00109"></a>00109 
<a name="l00116"></a>00116         <span class="keywordtype">void</span> <a class="code" href="class_jeu.html#a4e05676ed77ebeb5218fb36400b18af0" title="Ajout d&#39;un joueur a une position donnee.">addJoueur</a>(<a class="code" href="class_joueur.html">Joueur</a>*, <span class="keywordtype">int</span>);
<a name="l00117"></a>00117                 
<a name="l00122"></a>00122         vector&lt;Joueur*&gt; <a class="code" href="class_jeu.html#a79041d33e5e1d795d93b0d7979a1431f">getJoueurs</a>() <span class="keyword">const</span>;
<a name="l00123"></a>00123 
<a name="l00128"></a>00128         <span class="keywordtype">void</span> <a class="code" href="class_jeu.html#ae41433cc209083705eb1cd3f454da3c2" title="Passe au joueur suivant.">joueurSuivant</a>();
<a name="l00129"></a>00129 
<a name="l00136"></a>00136         <span class="keywordtype">void</span> deplacerVaisseauCourant(<span class="keywordtype">int</span>, <span class="keywordtype">int</span>);
<a name="l00137"></a>00137         
<a name="l00144"></a>00144         <span class="keywordtype">void</span> getCasesAccessibles(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>,vector&lt;Position&gt;&amp;);
<a name="l00145"></a>00145 
<a name="l00152"></a>00152         <span class="keywordtype">void</span> caseAccessibleDirection(<a class="code" href="class_position.html">Position</a>*,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,vector&lt;Position&gt;&amp;);
<a name="l00153"></a>00153 
<a name="l00159"></a>00159         vector&lt;unsigned int&gt; <a class="code" href="class_jeu.html#a762e9e712e6d5d8ac15ad3eae577c894" title="Lance un de.">lancerDe</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_jeu.html#a35c7769fdd18b626b5a6f1d0fe1401d2" title="Recupere le joueur courant.">getJoueurCourant</a>()-&gt;lancerDe(); };
<a name="l00160"></a>00160 
<a name="l00161"></a>00161 };
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 11 2012 23:30:05 for Space Battle by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
